package com.linpq.road.domain;

import com.linpq.common.annotation.Excel;
import com.linpq.common.core.domain.DataEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 管养单位对象 rd_management_unit
 *
 * @author linpq
 * @date 2021-07-28
 */
public class RdManagementUnit extends DataEntity<RdManagementUnit> {
private static final long serialVersionUID=1L;

    /** 管养单位 */
    @Excel(name = "管养单位")
    private String name;
    /** 单位编码 */
    @Excel(name = "单位编码")
    private String code;
    /** 单位排序 */
    @Excel(name = "单位排序")
    private String sort;
    /** 序列号 */
    @Excel(name = "序列号")
    private String serialNumber;
    public void setName(String name){
        this.name = name;
    }

    public String getName(){
        return name;
    }
    public void setCode(String code){
        this.code = code;
    }

    public String getCode(){
        return code;
    }
    public void setSort(String sort){
        this.sort = sort;
    }

    public String getSort(){
        return sort;
    }
    public void setSerialNumber(String serialNumber){
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber(){
        return serialNumber;
    }

@Override
public String toString(){
    return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                                .append("id",getId())
                                .append("name",getName())
                                .append("code",getCode())
                                .append("sort",getSort())
                                .append("serialNumber",getSerialNumber())
                .toString();
        }
}
